package edu.task.snake;

import edu.task.snake.controller.GameEngine;

import javax.swing.JFrame;
import java.awt.EventQueue;


public class SnakeApplication extends JFrame {
    private GameEngine gameEngine = new GameEngine();
    public SnakeApplication() {

        add(gameEngine.getViewArena());

        setResizable(false);
        pack();

        setTitle("Snake");
        setLocationRelativeTo(null);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {



        EventQueue.invokeLater(new Runnable() {

            public void run() {
                JFrame ex = new SnakeApplication();
                ex.setVisible(true);
            }
        });
    }
}